<?php
$time_start = microtime();
$time_start = explode(" ", $time_start);
$time_start = $time_start[1] + $time_start[0];
$start = $time_start;
define('START_TIME', $start);

$time_end = microtime();
$time_end = explode(" ", $time_end);
$time_end = $time_end[1] + $time_end[0];
$finish = $time_end;
$totaltime = ($finish - $start);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Tech. Support | <?php echo $title_for_layout?></title>
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
<?php
echo $html->css('admin_login');
echo $html->css('cmxform');
echo $html->css('template_css');
echo $html->css('ThemeOffice/theme');
echo $html->css('tabs/tabpane');
echo $html->css('pane');
echo $html->css('ui-lightness/ui.all', 'stylesheet', array('type' => 'text/css'));
echo $html->css('calendar-win2k-cold-1', 'stylesheet', array('title' => 'win2k-cold-1', 'type' => 'text/css'));
echo $javascript->link('jscalendar/calendar.js');
echo $javascript->link('jscalendar/lang/calendar-en.js');
echo $javascript->link('jscalendar/calendar-setup.js');
echo $javascript->link('jquery');
echo $javascript->link('jquery_plugins/jquery.validate');
echo $javascript->link('jquery_plugins/jquery.metadata');
echo $javascript->link('jquery_plugins/jquery.jclock');
echo $javascript->link('jquery_ui/ui.core.min');
echo $javascript->link('jquery_ui/ui.tabs.min');
echo $javascript->link('jquery_ui/ui.accordion.min');
echo $javascript->link('JSCookMenu.js');
echo $javascript->link('theme.js');
echo $javascript->link('includes_admin.js');
echo $javascript->link('menu.js');
//echo $javascript->link('tabpane_mini.js');
echo $javascript->link('tiny_mce/tiny_mce.js');
?>
</head>
<body>

<div id="wrapper">
    <div id="header">
        <div id="login"><?=$html->image('admin/header_logo.png')?>&nbsp;</div>
    </div>
</div>

<!-- Here's where I want my views to be displayed -->
  <div id="workspace">
    <?php  echo $content_for_layout ?>
  </div>
<!-- Add a footer to each displayed page -->
<div align="center" id="footer">
    <br>
    <table width="99%" border="0">
    <tr>
        <td align="center">
            <div align="center">
              <?=$html->link('Home', '#', array('class' => 'footer'))?> |
              <?=$html->link('About Us', '#', array('class' => 'footer'))?>
            </div><br>
            <div align="footer">
                Copyright &copy; 2010 <?php echo $wbtitle ?>. All rights reserved
            </div><br>
            <div align="center" class="smallgrey">
                <?php printf ("This page took %f seconds to load.", $totaltime); ?>
            </div>
        </td>
    </tr>
    </table>
</div>
</body>
</html>